<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('预览信息')"/>
    <th:block th:include="include :: datetimepicker-css"/>
</head>
<body>

<div id="contentDetails"></div>
<input id="content" name="content" th:value="${content}" type="hidden">
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="https://cdn.bootcss.com/simplemde/1.11.2/simplemde.min.js"></script>
<th:block th:include="include :: footer"/>

<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script>
    var content = $("#content").val();
    document.getElementById('contentDetails').innerHTML =
        marked.parse(content);
</script>
</body>
</html>